﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace KCL.Code.Entities
{
	public class OrderMaterial
	{
		public int id { get; set; }
		public string materialId { get; set; }
		public string description { get; set; }
		public int orderQuantity { get; set; }
		public int finishedQuantity { get; set; }
		public string finishedDate { get; set; }
		public List<OrderMaterialPhase> orderMaterialPhases { get; set; }
	}
	public class Order
	{
		public int id { get; set; }
		public int customerId { get; set; }
		public string customerName { get; set; }
		public string strTotalPrice { get; set; }
		public double totalPrice { get; set; }
		public int? discount { get; set; }
		public int? prePay { get; set; }
		public int? remain { get; set; }
		public string deliveryDate { get; set; }
		public string createdDate { get; set; }
		public int createdBy { get; set; }
		public int payMethodId { get; set; }
		public int packageId { get; set; }
		public List<OrderMaterial> orderMaterials { get; set; }
		public string code { get; set; }
		public bool isFinished { get; set; }
	}
	public class OrderMaterialPhase
	{
		public int orderMaterialId { get; set; }
		public int phaseId { get; set; }
		public double weight { get; set; }
		public int quantity { get; set; }
		public OrderMaterialPhase(int _orderMaterialId, int _phaseId, double _weight, int _quantity)
		{
			orderMaterialId = _orderMaterialId;
			phaseId = _phaseId;
			weight = _weight;
			quantity = _quantity;
		}
	}
}